﻿using System.ComponentModel;

namespace DoVuiKinhThanh
{
    /// <summary>
    /// Provides data for the CollectionItemChanged event.
    /// </summary>
    public class CollectionItemChangedEventArgs : PropertyChangedEventArgs {
        #region IConstructors

        /// <summary>
        /// Constructor
        /// </summary>
        public CollectionItemChangedEventArgs(int index, string propertyName)
            : base(propertyName) {
            Index = index;
        }

        #endregion IConstructors
        #region IProperties

        /// <summary>
        /// Index of the changed item in the collection
        /// </summary>
        public int Index {
            get;
            private set;
        }

        #endregion
    }
}